package cn.tedu.charging.order.client;

import cn.tedu.charging.common.protocol.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name="charging-user")
public interface UserClient {
    //传递userId和gunId 让车主检查是否允许充电
    @GetMapping("/user/charg/check")
    JsonResult<Boolean> checkChargeOk(
            @RequestParam(name="userId")Integer userId,
            @RequestParam(name="gunId")Integer gunId);
}
